package com.myidis.response;

import java.util.ArrayList;
import java.util.List;

import com.myidis.entity.Department;

public class DepartmentRes {
	private int id;
	private String label;
	public List<DepartmentRes> children;
	
	public DepartmentRes() {
		this.id = 0;
		this.label = "全体单位";
		this.children = new ArrayList<DepartmentRes>();
	}
	
	public DepartmentRes(Department dept) {
		this.id = dept.getId();
		this.label = dept.getName();
		this.children = new ArrayList<DepartmentRes>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<DepartmentRes> getChildren() {
		return children;
	}

	public void setChildren(List<DepartmentRes> children) {
		this.children = children;
	}
}
